//
// Created by Kai Wang on 23-11-22.
//

#include "item/item.h"
#include "item/item_category.h"

#include <string>
#include <utility>

Item::Item(
    std::string &name,           //
    ItemCategory item_category,  //
    std::string  description,    //
    float        price,          //
    float        points,         //
    int          sells           //
)
{
    category_    = item_category;
    name_        = name;
    price_       = price;
    description_ = std::move(description);
    points_      = points;
    sells_       = sells;
}

ItemCategory Item::get_category() const
{
    return category_;
}

std::string Item::get_name() const
{
    return name_;
}

float Item::get_price() const
{
    return price_;
}

std::string Item::get_description() const
{
    return description_;
}

float Item::get_points() const
{
    return points_;
}

int Item::get_sells() const
{
    return sells_;
}

void Item::set_name(std::string &name)
{
    name_ = name;
}
